<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			limit_type: $('#limit_type').val(),
			limit_idx: $('#limit_idx').val(),
			channel_no: $('#channel_no').val(),
			limit_st: $('#limit_st').val()			
		});
  }
  
  function addTransLimit(url){	  
	  commonDetail(url,"save","translimitTableId");
  }
  function modifyTransLimit(url){	  
	  commonDetail(url,"update","translimitTableId");
  }
  function deleteTransLimit(url){	  
	  commonDel(url,"delete","translimitTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#translimitTableId").jpgrid({
			url: "getTransLimitListJson.do",
			columns: [
				{title: "限额类型", field: "LIMITTYPE"},
				{title: "限额索引", field: "LIMIT_IDX"},
				{title: "当日限额", field: "LIMIT_AMOUNT"},
				{title: "营业日期", field: "BEGDATE"},
				{title: "停业日期", field: "ENDDATE"},
				{title: "营业时间", field: "BEGTIME"},
				{title: "停业时间", field: "ENDTIME"},
				{title: "交易日期", field: "TRANS_DATE"},
				{title: "交易金额", field: "TRANS_AMOUNT"},
				{title: "通道编号", field: "CHANNELNO"},
				{title: "限额状态", field: "LIMITST"}								
			]
		});	  
  });
  </script>
</head>
<body class="easyui-layout list_body"  >
	<form id="translimitForm" name="translimitForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>限额类型:</span>
				<code:codeSelect id="limit_type" name="limit_type" code_type="limit_type" showSelect="true" ></code:codeSelect>
				<span>限额索引:</span>
				<input id="limit_idx" type="text" name="limit_idx"  class="easyui-textbox"  >
				<span>通道编号:</span>
				<input id="channel_no" type="text" name="channel_no"  class="easyui-textbox"  >
				<span>限额状态:</span>
				<code:codeSelect id="limit_st" name="limit_st" code_type="limit_st" showSelect="true" ></code:codeSelect>							
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>				
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="translimitTableId" fit="true"></table>
		</div>
	</form>
</body>
 </html>
